Skip to main content

Week 5

Milestones

  • Set up the project and install required dependencies (officegen, @nestjs/common, @nestjs/core).
  • Update the controller (plugin.controller.ts) to handle both 'PDF' and 'DOCX' output types, utilizing the DocxOutputPlugin for 'DOCX' generation.
  • Test the DOCX generation by running the application and using an API client to trigger the /generate-doc/DOCX endpoint.

Screenshots / Videos

Contributions

https://github.com/Samagra-Development/Doc-Generator/pull/163

Learnings

Library Integration: Integrating third-party libraries for specific functionalities, like officegen for creating DOCX documents, requires understanding the library's API and how it fits into your application architecture.